package top.chmin.project.cloud.common.entity.column.relation.auto;


import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * chmin
 * 2023-12-27 15:15:42
 * cloud-builder
 */
public interface EntityColumnRelationUpdateById {

    @PostMapping("/au/entityColumnRelation/updateById")
    int updateById(@RequestBody Param param);

    @Getter
    @Setter
    @Accessors(chain = true)
    class Param {
        // 被依赖表名
        String targetTableCode;
        // 依赖表名
        String sourceTableCode;
        // 被依赖属性
        String targetFieldCode;
        // 依赖字段
        String sourceFieldCode;
        // ID
        Long id;
    }

}
